Skip to content

Conversation

@jfcherng
Copy link
Collaborator

@jfcherng jfcherng commented Mar 17, 2020

The binary from vscode-html-languageserver-bin is quite old. There seems to be lots of features not working with the outdated server.

We have to compile it from the source by ourselves.

We also have to add some initializationOptions and settings to make it work better.

This PR also changes the overall code/directory structure to be the same with LSP-eslint.


Now, it supports
2020-03-17_20-35-37
None of above features are available before this PR.

We have to compile it from the source by ourselves.

- https://github.com/jfcherng/vscode-html-languageserver-bin/tree/sublime-text
- mattn/vim-lsp-settings#48

We also have to add some initializationOptions and settings to make it
work better.

Signed-off-by: Jack Cherng <[email protected]>
@rchl
Copy link
Member

rchl commented Mar 17, 2020

We should also commit vscode-html/package-lock.json as otherwise the dependencies can get updated and break something. We should be in control of when we want to update dependencies.

@jfcherng
Copy link
Collaborator Author

We should also commit vscode-html/package-lock.json as otherwise the dependencies can get updated and break something. We should be in control of when we want to update dependencies.

Done.

Signed-off-by: Jack Cherng <[email protected]>
Signed-off-by: Jack Cherng <[email protected]>
Copy link
Member

@rchl rchl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but lets wait for lsp_utils before merging this.

Copy link
Member

@predragnikolic predragnikolic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
@jfcherng thank you for this :)
I tried using Find Symbol References and Go Ro Symbol Definition, but that doesn't do anything. Am I missing something?

@jfcherng
Copy link
Collaborator Author

jfcherng commented Mar 17, 2020

I tried using Find Symbol References and Go Ro Symbol Definition, but that doesn't do anything. Am I missing something?

I guess it only usable in js/css context. Since reference and definition are hmm... not having a clear meaning in HTML? Rename Symbol does work on HTML tag name (like h1 to h2) but not in js/css though... Feel quite limited...

image

@predragnikolic predragnikolic merged commit f0e2161 into sublimelsp:master Mar 17, 2020
@predragnikolic
Copy link
Member

BTW, lsp_utils is merged to Package Control :)

@jfcherng jfcherng deleted the update-vscode-server branch March 17, 2020 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants